<?php
session_start();
//$_SESSION["user"] = 1;
require_once "../core.php";
if (!isset($_SESSION["user"])) {
    header("Location:login.php");
    exit;
}
$manager=$core->GetManageById($_SESSION["user"]);
if  (empty($manager)){
    unset($_SESSION["user"]);
    header("Location:login.php");
    exit;
}